#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  first.py
#       Author @  Huoty
#  Create date @  2015-12-11 09:34:13
#  Description @
# *************************************************************

from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:////temp/test.db"
db = SQLAlchemy(app)

class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.Integer, unique=True)
    email = db.Column(db.String(120), unique=True)

    def __init__(self, username, email):
        self.username = username
        self.email = email

    def __repr__(self):
        return '<User %r>' % self.username

# Script starts from here
